//* static alien that rotate and shoots shrapnels

alien_turret_images = new Images('turret',6);

function AlienTurret() {
  // contructor
  var that = new Alien();
  that.images = alien_turret_images;
  that.credit = 150;
  
  // update 
  that.update = function() {
    // fire every once in a while
    if (this.frame % 20 == 19)
      aliens.add(new AlienShrapnels(1,this.x,this.y));
  }
  
  return that;
}

function AlienTurrets(ACount) {
  // create array of aliens
  var that = new Array();
  for (var i=0; i<ACount; i++)
      that.push(new AlienTurret());
  return that;  
}
